/**
 * @FileName: T_HelloWorldService.java
 * @Package: com.ziroom.sms.std
 * @author liusq23
 * @created 2017/2/9 下午11:12
 * <p>
 * Copyright 2015 ziroom
 */
package com.ziroom.sms.std;

import com.ziroom.sms.std.api.HelloWorldService;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;

import static org.hamcrest.CoreMatchers.containsString;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * <p></p>
 *
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author liusq23
 * @since 1.0
 * @version 1.0
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:dubbo-consumer.xml"})
public class T_HelloWorldService {

    @Resource(name = "helloService")
    private HelloWorldService helloWorldService;


    @Test
    public void t_helloWorldService(){
        assertNotNull(helloWorldService);
        String s = helloWorldService.sayHello("sence");
        assertThat(s, containsString("Ziroom"));
    }

}
